package com.hurl.waguji.web.admin;

import java.util.HashMap;
import java.util.Map;

import com.hurl.waguji.base.dataprocess.ProcessParams.DateType;
import com.hurl.waguji.biz.collect.CollectIdentifier;
import com.hurl.waguji.biz.download.DownloadIdentifier;
import com.hurl.waguji.biz.schedule.ProcessJobDetail;

public class ProcessJobLoader {
	public static Map<String,ProcessJobDetail> load(){

		Map<String,ProcessJobDetail> list = new HashMap<String,ProcessJobDetail>();
		
		/* 下载 */
		list.put(DownloadIdentifier.CW_CWZB_THS.getId(), new ProcessJobDetail(DownloadIdentifier.CW_CWZB_THS));
		list.put(DownloadIdentifier.CW_CWGC_THS.getId(), new ProcessJobDetail(DownloadIdentifier.CW_CWGC_THS));
		list.put(DownloadIdentifier.CW_ZCFZB_THS.getId(), new ProcessJobDetail(DownloadIdentifier.CW_ZCFZB_THS));
		list.put(DownloadIdentifier.CW_LRB_THS.getId(), new ProcessJobDetail(DownloadIdentifier.CW_LRB_THS));
		list.put(DownloadIdentifier.CW_XJLB_THS.getId(), new ProcessJobDetail(DownloadIdentifier.CW_XJLB_THS));
		
		ProcessJobDetail detail = new ProcessJobDetail(DownloadIdentifier.CW_CWBL_HEXUN);
		detail.getParams().setDateType(DateType.END_OF_PREVIOUS_SEASON);
		list.put(detail.getIdentifier().getId(),detail);
		
		detail = new ProcessJobDetail(DownloadIdentifier.CW_LRB_HEXUN);
		detail.getParams().setDateType(DateType.END_OF_PREVIOUS_SEASON);
		list.put(detail.getIdentifier().getId(),detail);
		
		detail = new ProcessJobDetail(DownloadIdentifier.CW_ZCFZB_HEXUN);
		detail.getParams().setDateType(DateType.END_OF_PREVIOUS_SEASON);
		list.put(detail.getIdentifier().getId(),detail);

		list.put(DownloadIdentifier.MRHQ_CJMX_FBMX_HEXUN.getId(), new ProcessJobDetail(DownloadIdentifier.MRHQ_CJMX_FBMX_HEXUN));
		list.put(DownloadIdentifier.MRHQ_CJMX_FJMX_HEXUN.getId(), new ProcessJobDetail(DownloadIdentifier.MRHQ_CJMX_FJMX_HEXUN));
		list.put(DownloadIdentifier.MRHQ_CJMX_HEXUN.getId(), new ProcessJobDetail(DownloadIdentifier.MRHQ_CJMX_HEXUN));
		list.put(DownloadIdentifier.MRHQ_HEXUN.getId(), new ProcessJobDetail(DownloadIdentifier.MRHQ_HEXUN));
		list.put(DownloadIdentifier.MRHQ_SINA.getId(), new ProcessJobDetail(DownloadIdentifier.MRHQ_SINA));
		list.put(DownloadIdentifier.MRHQ_CJMX_FILE_TENCENT.getId(), new ProcessJobDetail(DownloadIdentifier.MRHQ_CJMX_FILE_TENCENT));
		list.put(DownloadIdentifier.MRHQ_CJMX_TENCENT.getId(), new ProcessJobDetail(DownloadIdentifier.MRHQ_CJMX_TENCENT));

		list.put(DownloadIdentifier.PROFILE_GBJG_THS.getId(), new ProcessJobDetail(DownloadIdentifier.PROFILE_GBJG_THS));
		list.put(DownloadIdentifier.PROFILE_GD_THS.getId(), new ProcessJobDetail(DownloadIdentifier.PROFILE_GD_THS));
		list.put(DownloadIdentifier.PROFILE_GDRS_THS.getId(), new ProcessJobDetail(DownloadIdentifier.PROFILE_GDRS_THS));
		list.put(DownloadIdentifier.PROFILE_GSGG_THS.getId(), new ProcessJobDetail(DownloadIdentifier.PROFILE_GSGG_THS));
		list.put(DownloadIdentifier.PROFILE_GSGK_THS.getId(), new ProcessJobDetail(DownloadIdentifier.PROFILE_GSGK_THS));
		list.put(DownloadIdentifier.PROFILE_JJSJB_THS.getId(), new ProcessJobDetail(DownloadIdentifier.PROFILE_JJSJB_THS));
		list.put(DownloadIdentifier.PROFILE_FH_HEXUN.getId(), new ProcessJobDetail(DownloadIdentifier.PROFILE_FH_HEXUN));
		list.put(DownloadIdentifier.PROFILE_PG_HEXUN.getId(), new ProcessJobDetail(DownloadIdentifier.PROFILE_PG_HEXUN));
		
		list.put(DownloadIdentifier.HYTJ_THS.getId(), new ProcessJobDetail(DownloadIdentifier.HYTJ_THS));
		list.put(DownloadIdentifier.STOCK_CODE_HEXUN.getId(), new ProcessJobDetail(DownloadIdentifier.STOCK_CODE_HEXUN));
		
		/* 数据整理 */
		list.put(CollectIdentifier.COLLECT.getId(), new ProcessJobDetail(CollectIdentifier.COLLECT));
		
		return list;
	
	}
}
